<!-- This view contains all medicine units -->

<div id="div_medicine_usage" class="form_container" style="width: 760px; margin-top: 5px; display: none;">
	{include file="medicine/general_medicine_def_usage_form.html"}
</div>

<div id="medicine_def_usage_container" style="margin-top: 10px; height: 350px; overflow: auto;">    
    <table id="medicine_def_usage_list" cellspacing="0" cellpadding="0" class="grid" width="100%">
        <thead>
            <tr>
                <th class="first">{translate}Order number{/translate}</th>
                <th>{translate}Usage{/translate}</th>                
                <th>{translate}Dosage{/translate}</th>
                <th>{translate}Unit{/translate}</th>
                <th>{translate}Time{/translate}</th>
                <th>{translate}Quantity{/translate}</th>
            </tr>
        </thead>
        <tbody>
        {php}$count = 1; $this->assign('count', $count);{/php}
        {foreach from=$medDefUsageList item=usage}
            <tr>
                <td>{$count}</td>
                <td><a href="#">
                	{$usage.usage_title}
                </a></td>
                <td>{translate p1=$usage.usage_num}Every day %s time(s){/translate}</td>
                <td>
                {if $usage.dosage neq ""}
                	{translate p1=$usage.dosage p2=$usage.dosage_title}Every time %s %s{/translate}
                {/if}                
                &nbsp;</td>
                                
                <td>
                {if $usage.time neq ""}
                	{translate p1=$usage.time}%s&nbsp;day(s){/translate}
                {/if}
                </td>
                
                <td>{$usage.quantity_num}&nbsp;{$usage.quantity_title}</td>                
            </tr>
            {php}$count++; $this->assign('count', $count);{/php}
        {/foreach}
        </tbody>
    </table>
    
    {php}$count--; $this->assign('count', $count);{/php}   
</div>